﻿<mui:ModernWindow x:Class="Vtron.HipcConfigurationTools.VWASStyle.SetNetConfigWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mui="http://firstfloorsoftware.com/ModernUI"
        Title="设置网络信息" Height="300" Width="400"
        WindowStartupLocation="CenterScreen">

    <mui:ModernWindow.Resources>
        <Style x:Key="TextBlockStyle" TargetType="TextBlock">
            <Setter Property="HorizontalAlignment" Value="Right"/>
            <Setter Property="Margin" Value="0,0,5,0"/>
            <Setter Property="FontSize" Value="13.333"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
        </Style>
        <Style x:Key="TextBoxStyle" TargetType="TextBox">
            <Setter Property="Width" Value="350"/>
            <Setter Property="HorizontalAlignment" Value="Left"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="5,3,0,3"/>
            <Setter Property="BorderThickness" Value="0,0,0,1"/>
            <Setter Property="BorderBrush" Value="Black"/>
            <Setter Property="Background" Value="{x:Null}"/>
        </Style>

    </mui:ModernWindow.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <TextBlock Text="设置设备名" Margin="20,20,40,8" FontSize="18"/>
        <Grid Grid.Row="1" Margin="20">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <TextBlock Text="是否DHCP：" Style="{StaticResource TextBlockStyle}"/>
            <CheckBox Name="isDHCP_CheckBox" Content="" Margin="0" FontSize="14"  Grid.Row="0" Grid.Column="1"/>
            <TextBlock Text="IP地址：" Style="{StaticResource TextBlockStyle}" Grid.Row="1" Grid.Column="0"/>
            <TextBox Name="ip_TextBox" Style="{StaticResource TextBoxStyle}"  Grid.Row="1" Grid.Column="1"/>
            <TextBlock Text="子网掩码：" Style="{StaticResource TextBlockStyle}" Grid.Row="2" Grid.Column="0"/>
            <TextBox Name="mask_TextBox" Style="{StaticResource TextBoxStyle}"  Grid.Row="2" Grid.Column="1"/>
            <TextBlock Text="默认网关：" Style="{StaticResource TextBlockStyle}" Grid.Row="3" Grid.Column="0"/>
            <TextBox Name="gateway_TextBox"  Style="{StaticResource TextBoxStyle}" Grid.Row="3" Grid.Column="1"/>
            <TextBlock Text="MAC地址：" Style="{StaticResource TextBlockStyle}"  Grid.Row="4" Grid.Column="0"/>
            <TextBox Name="mac_TextBox" Style="{StaticResource TextBoxStyle}"  Grid.Row="4" Grid.Column="1"/>
            <StackPanel Grid.Column="1" Orientation="Horizontal" Grid.Row="5" Margin="5,20">
                <Button Content="取消" VerticalAlignment="Center" Width="97" Height="26" FontSize="12.333" Click="CancelButton_Click"/>
                <Button Content="设置" VerticalAlignment="Center" Width="87" Height="26" FontSize="12.333" Click="SubmitButton_Click"/>
            </StackPanel>
        </Grid>
    </Grid>
</mui:ModernWindow>
